package sc.main;

import java.util.Scanner;

import sc.dao.DepartmentDAO;
import sc.dao.StudentDAO;
import sc.service.DepartmentService;
import sc.service.StudentService;

public class Sc_ERP {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		boolean flag = true;
		int res = 0;
		
		while(flag) {
			System.out.println("1.학생정보\n2.학과정보\n3.종료\n");
			res = sc.nextInt();
			switch(res) {
				case 1:
					new StudentService(new StudentDAO(), sc);
					break;
				case 2:
					new DepartmentService(new DepartmentDAO(), sc);
					break;
				default:
					flag = false;
					sc.close();
					System.exit(0);
			}
		}
	}
}